package com.util.cdb.exception;

import com.util.cdb.bean.Result;

public class DBException extends RuntimeException {
    public DBException(Throwable cause) {
        super(cause);
    }

    public DBException(String message) {
        super(message);
    }

    public DBException(String message, Throwable cause) {
        super(message, cause);
    }

    public Result getResult() {
        return Result.resultFail(getMessage());
    }
}
